<div class="tree">
		<ul id="root">
		    {{foreach $category as $k}}
		    <li>
		        <label><a href="{{if $k.Type!='目录'}}{{site_url("document/Judge?Id={{$k.Id}}")}}{{else}}javascript:;{{/if}}">{{$k.CateName}}</a></label>
		        {{if !empty($k.Child)}}
		        <ul class="two">
		        {{foreach $k.Child as $child}}
		            <li>
		            <label><a href="{{if $child.Type!='目录'}}{{site_url("document/Judge?Id={{$child.Id}}")}}{{else}}javascript:;{{/if}}">{{$child.CateName}}</a></label>
				{{if !empty($child.Child)}}
		        <ul class="two">
		        {{foreach $child.Child as $cd}}
		            <li><label><a href="{{if $cd.Type!='目录'}}{{site_url("document/Judge?Id={{$cd.Id}}")}}{{else}}javascript:;{{/if}}">{{$cd.CateName}}</a></label></li>
		            {{/foreach}}
		        </ul>
		          {{/if}}
		            </li>
		            {{/foreach}}
		        </ul>
		          {{/if}}
		    </li>
		    {{/foreach}}
		</ul>	
	</div>